$(function(){
    //初始化
    init()
    function init(){
        chanpin();
    }

    function chanpin(){
        $.ajax({
            type:"get",
            url:"http://193.112.55.79:9090/api/getinlanddiscount",
            success:function(data){
                // console.log(res);
                var html = template("chanpinTmp", { arr: data.result})
                $(".chanpinOne").html(html);
            }
        })
    }


})